<?php


/**
 * @author Admin
 *
 *
 */
class DisplayCollection extends DomainObjectCollection {
	/**
	 *
	 * @param  ViewHelper

	 */
	public  function __construct($object = null) {
		parent::__construct($object = null);

	}
	
/**
*Add element to collection
*@param ViewHelper
*@param int
*/
public function addElement( Display $object , $key=null){
    if( !isset($key) ){
    $this->doAddElement ( $object);
    }
    else {
    $this->doAddElementByKey ( $object , $key );
    }
}
	/**
	 * 
	 * sort the results based on algorithm within passed function
	 */
	public function sort(callable $function){
	
	}
}


?>